package com.shunbo.convenient.service.impl;

import com.shunbo.convenient.dao.ProductTypeMapper;
import com.shunbo.convenient.service.ProductTypeService;
import com.shunbo.convenient.vo.ProductType;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author weizhuang
 */

@Service
@Transactional
public class ProductTypeServiceImpl implements ProductTypeService {

    @Resource
    private ProductTypeMapper productTypeMapper;

    @Override
    public Integer save(ProductType obj) {
        return productTypeMapper.save(obj);
    }

    @Override
    public Integer update(ProductType obj) {
        return productTypeMapper.update(obj);
    }

    @Override
    public Integer delete(String obj) {
        return productTypeMapper.delete(obj);
    }

    @Override
    public ProductType findById(String obj) {
        return productTypeMapper.findById(obj);
    }

    @Override
    public List<ProductType> findAll(ProductType obj) {
        return productTypeMapper.findAll(obj);
    }
}
